package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@TableName("sys_supplier")
public class Supplier extends Model<Supplier> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("supplier_name")
    private String supplierName;
    @TableField("supplier_adress")
    private String supplierAdress;
    @TableField("supplier_pic")
    private String supplierPic;
    @TableField("supplier_landline")
    private Integer supplierLandline;
    @TableField("supplier_pic_tel")
    private String supplierPicTel;
    @TableField("supplier_quality")
    private String supplierQuality;
    @TableField("supplier_recording")
    private Integer supplierRecording;
    @TableField("supplier_blacklist")
    private String supplierBlacklist;
    @TableField("supplier_email")
    private String supplierEmail;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierAdress() {
        return supplierAdress;
    }

    public void setSupplierAdress(String supplierAdress) {
        this.supplierAdress = supplierAdress;
    }

    public String getSupplierPic() {
        return supplierPic;
    }

    public void setSupplierPic(String supplierPic) {
        this.supplierPic = supplierPic;
    }

    public Integer getSupplierLandline() {
        return supplierLandline;
    }

    public void setSupplierLandline(Integer supplierLandline) {
        this.supplierLandline = supplierLandline;
    }

    public String getSupplierPicTel() {
        return supplierPicTel;
    }

    public void setSupplierPicTel(String supplierPicTel) {
        this.supplierPicTel = supplierPicTel;
    }

    public String getSupplierQuality() {
        return supplierQuality;
    }

    public void setSupplierQuality(String supplierQuality) {
        this.supplierQuality = supplierQuality;
    }

    public Integer getSupplierRecording() {
        return supplierRecording;
    }

    public void setSupplierRecording(Integer supplierRecording) {
        this.supplierRecording = supplierRecording;
    }

    public String getSupplierBlacklist() {
        return supplierBlacklist;
    }

    public void setSupplierBlacklist(String supplierBlacklist) {
        this.supplierBlacklist = supplierBlacklist;
    }

    public String getSupplierEmail() {
        return supplierEmail;
    }

    public void setSupplierEmail(String supplierEmail) {
        this.supplierEmail = supplierEmail;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Supplier{" +
        "id=" + id +
        ", supplierName=" + supplierName +
        ", supplierAdress=" + supplierAdress +
        ", supplierPic=" + supplierPic +
        ", supplierLandline=" + supplierLandline +
        ", supplierPicTel=" + supplierPicTel +
        ", supplierQuality=" + supplierQuality +
        ", supplierRecording=" + supplierRecording +
        ", supplierBlacklist=" + supplierBlacklist +
        ", supplierEmail=" + supplierEmail +
        "}";
    }
}
